Measuring of analytes